<layout name="Layout/layout" />
<div class="row">
	<div class="col-lg-12">
		<h1 class="page-header">报名情况</h1>
	</div>
	<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-default">
			<div class="panel-heading">
				报名列表
				<a class="btn btn-default btn-xs pull-right" href="{:U('Admin/Enroll/exportexcel')}" role="button">
					<span class="glyphicon glyphicon-download" aria-hidden="true"></span>导出为excel
				</a>
			</div>
			<!-- /.panel-heading -->
			<div class="panel-body">
			<?php
				$head = array(
					'id'	=>	array('ID', 'doNothing'),
					'uid'	=>	array('报名用户','getUsername'),
                    'enrolltime'    =>  array('报名时间','formatDate'),
                    'uptime'    =>  array('最后更新时间','formatDate'),
                    'ispayed'   =>  array('是否已经支付','isPayed'),
                    'major' =>  array('报名专业','getMajorNames'),
                    'examcenter'    =>  array('考点','getExamcenterName')
				);
			?>
			{:W('Table/tableWithFunction', array($head, $enrolllist))}
			</div>
			<!-- /.panel-body -->
		</div>
		<!-- /.panel -->
	</div>
	<!-- /.col-lg-12 -->
</div>
<script>
window.onload = function(){
$('#dataTables-example').DataTable({
		responsive: true
});
}
</script>
